Telegram Group & Telegram Channel
Задача с кодом. Стоит ли так гнать?

Чтобы сократить время, проведенное в дороге, водители часто превышают установленные ограничения скорости.

Напишите функцию, которая будет высчитывать время, сэкономленное за счет превышения лимита скорости. Она будет принимать три числа — лимит скорости, среднюю скорость и расстояние, которое водитель проехал со средней скоростью.

Примечания:

- Скорость = расстояние / время
- Возвращаемое время должно быть в минутах, а не в часах.
- Скорость передается в км/ч, расстояние — в км.
- Сэкономленное время — разница между временем движения при скоростном лимите и при средней скорости.

Примеры:

time_saved(80, 90, 40) ➞ 3.3
time_saved(80, 90, 4000) ➞ 333.3
time_saved(80, 100, 40 ) ➞ 6.0
time_saved(80, 100, 10) ➞ 1.5

Решение на нашем сайте.

#задача #coding



tg-me.com/pythonist_ru/2417
Create:
Last Update:

Задача с кодом. Стоит ли так гнать?

Чтобы сократить время, проведенное в дороге, водители часто превышают установленные ограничения скорости.

Напишите функцию, которая будет высчитывать время, сэкономленное за счет превышения лимита скорости. Она будет принимать три числа — лимит скорости, среднюю скорость и расстояние, которое водитель проехал со средней скоростью.

Примечания:

- Скорость = расстояние / время
- Возвращаемое время должно быть в минутах, а не в часах.
- Скорость передается в км/ч, расстояние — в км.
- Сэкономленное время — разница между временем движения при скоростном лимите и при средней скорости.

Примеры:

time_saved(80, 90, 40) ➞ 3.3
time_saved(80, 90, 4000) ➞ 333.3
time_saved(80, 100, 40 ) ➞ 6.0
time_saved(80, 100, 10) ➞ 1.5

Решение на нашем сайте.

#задача #coding

BY Pythonist.ru - образование по питону


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/pythonist_ru/2417

View MORE
Open in Telegram


Pythonist ru образование по питону Telegram | DID YOU KNOW?

Date: |

That growth environment will include rising inflation and interest rates. Those upward shifts naturally accompany healthy growth periods as the demand for resources, products and services rise. Importantly, the Federal Reserve has laid out the rationale for not interfering with that natural growth transition.It's not exactly a fad, but there is a widespread willingness to pay up for a growth story. Classic fundamental analysis takes a back seat. Even negative earnings are ignored. In fact, positive earnings seem to be a limiting measure, producing the question, "Is that all you've got?" The preference is a vision of untold riches when the exciting story plays out as expected.

Telegram hopes to raise $1bn with a convertible bond private placement

The super secure UAE-based Telegram messenger service, developed by Russian-born software icon Pavel Durov, is looking to raise $1bn through a bond placement to a limited number of investors from Russia, Europe, Asia and the Middle East, the Kommersant daily reported citing unnamed sources on February 18, 2021.The issue reportedly comprises exchange bonds that could be converted into equity in the messaging service that is currently 100% owned by Durov and his brother Nikolai.Kommersant reports that the price of the conversion would be at a 10% discount to a potential IPO should it happen within five years.The minimum bond placement is said to be set at $50mn, but could be lowered to $10mn. Five-year bonds could carry an annual coupon of 7-8%.

Pythonist ru образование по питону from kr


Telegram Pythonist.ru - образование по питону
FROM USA